package com.zmn.oms.third.toutiao.service.impl;

import com.zmn.oms.model.vo.work.ZsOrderWorkVO;
import com.zmn.oms.third.toutiao.service.HeadlinesService;
import com.zmn.oms.zmn.business.interfaces.work.ZsOrderWorkQueryBService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author: huangyifeng
 * @description:
 * @create: 2019-12-25 19:18
 **/

public abstract class HeadlinesBase implements HeadlinesService {

    @Autowired
    protected ZsOrderWorkQueryBService zsOrderWorkQueryBService;

    /**
     * 通过头条订单号在系统中查对应的订单
     * @param outerId
     * @return
     */
    protected ZsOrderWorkVO queryOrderByOuterId(String outerId) {
        return zsOrderWorkQueryBService.findOrderWorkByOuterId(outerId, null);
    }

}
